package com.wen.yygh.user.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wen.yygh.model.user.UserInfo;
import com.wen.yygh.vo.user.LoginVo;
import com.wen.yygh.vo.user.UserAuthVo;
import com.wen.yygh.vo.user.UserInfoQueryVo;

import java.util.Map;

/**
 * @author Wenjl
 */
public interface UserService extends IService<UserInfo> {
    /**
     * 用户登录
     * @param loginVo
     * @return
     */
    Map<String, Object> login(LoginVo loginVo);

    /**
     * 用户认证
     * @param userId
     * @param userAuthVo
     */

    void userAuth (Long userId, UserAuthVo userAuthVo);

    IPage selectPage(Page<UserInfo> pageParam, UserInfoQueryVo userInfoQueryVo);

    void lock(Long id, Integer status);

    Map<String, Object> show(Long id);

    void approval(Long userId, Integer authStatus);
}



